// 组织架构发请求
import instance from '@/utils/request'

// 获取组织架构的接口请求
export function getDepartmentApi() {
  return instance({
    url: '/company/department',
    method: 'get'
  })
}

// 删除部门
export function getDelApi(id) {
  return instance({
    url: `/company/department/${id}`,
    method: 'DELETE'
  })
}

// 新增部门
export function getAddDepartmentApi(data) {
  return instance({
    url: '/company/department',
    method: 'post',
    data
  })
}

// 根据ID查询部门详情
export function getInquireApi(id) {
  return instance({
    url: `/company/department/${id}`,
    method: 'GET'
  })
}
